namespace SimpleWebServices.Web
{
    using System;
    using System.Web.Mvc;
    using Xunit;

    public sealed class IRedirectFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IRedirect).IsInterface);
        }

        [Fact]
        public void IRedirect_ToActionResult()
        {
            try
            {
                ActionResult value = (new IRedirectDummy() as IRedirect).ToActionResult();
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}